package com.lp.zyll.constant;

/**
 * @Auther: 李鹏
 * @Description: TODO 常量
 * @Date: 2021/6/7 23:50
 * @Version: v1.0
 */
public class LpConstant {


    /**
     * 用于IP定位转换
     */
    public static final String REGION = "内网IP|内网IP";
    /**
     * win 系统
     */
    public static final String WIN = "win";

    /**
     * mac 系统
     */
    public static final String MAC = "mac";


    /**
     * 验证码有效期 分钟
     */
    public static Long code = 600L;
    public static Integer tokenTime = 1 * 60 * 60;

    /**
     * 常用接口
     */
    public static class Url {
        // IP归属地查询
        public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
    }

    /**
     * 用户key的前缀
     */
    public final static String USER_KEY = "ZYLL_USER_KEY:";
    /**
     * token key的前缀
     */
    public final static String TOKEN_KEY = "ZYLL_TOKEN_KEY:USERNAME:";

    /**
     * 验证码key的前缀
     */
    public final static String CODE_KEY = "ZYLL_CODE_KEY:";
    /**
     * token的head名称
     */
    public static final String TOKEN_HEADER = "Authorization";
    /**
     * token的类型
     */
    public static final String TOKEN_PREFIX = "Bearer ";


}

